import java.util.Scanner;
public class test {
    public static String getYear(int year) {
        String[] years = new String[] { "鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊",
                "猴", "鸡", "狗", "猪" };
        return years[(year - 1900) % years.length];
    }

    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int year = scanner.nextInt();
        System.out.println(getYear(year));
    }
}
